package com.example.reschain.demo03.service;

import com.example.reschain.demo02.OrderContext;
import com.example.reschain.demo03.AbstractOrderHandle;
import org.springframework.core.Ordered;
import org.springframework.stereotype.Component;

@Component
public class BankOrderHandle extends AbstractOrderHandle implements Ordered {

    @Override
    public OrderContext handle(OrderContext context) {
        System.out.println("检查银行账户是否合法，调用银行系统检查银行账户余额是否满足下单金额");
        return context;
    }

    @Override
    public int getOrder() {
        return 3;
    }
}